<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDPNET: XRay3dExtension.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDPNET<span id="projectnumber">&#160;1.0</span>
   </div>
   <div id="projectbrief">.NET SDK</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_6e8f4508e1d360b9a007f40edb8dae96.html">_SSDP</a></li><li class="navelem"><a class="el" href="dir_b1efc71fc5c0b1546dfaf7dca60b6e03.html">最新</a></li><li class="navelem"><a class="el" href="dir_3da81ba1892e410416fdba26c4859275.html">Repo</a></li><li class="navelem"><a class="el" href="dir_36a1a74683486d663aaa949ba78ca961.html">bim-ssd-core-plugin</a></li><li class="navelem"><a class="el" href="dir_c085970a38f500e61b887bb609fc24fd.html">SSDP.Net</a></li><li class="navelem"><a class="el" href="dir_3d9778eef114628a3d8facdda36c5043.html">SSDPNet</a></li><li class="navelem"><a class="el" href="dir_bd54ebea303681ad88c98d142df46247.html">PublicAPI</a></li><li class="navelem"><a class="el" href="dir_4cdd252a4c00d0fc823c862a50c8bed7.html">Geom</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">XRay3dExtension.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#pragma region Include_Platform</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &lt;ATECCore\ATECCoreAPI.h&gt;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span> </div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="keyword">using namespace </span>System;</div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="keyword">using namespace </span>System::Runtime::CompilerServices;</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="keyword">using namespace </span>System::Runtime::InteropServices;</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span>USING_NAMESPACE_ATEC</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span>USING_NAMESPACEATEC_ATDATACORE</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span>USING_NAMESPACE_ATEC_RATCORE</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span> </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#pragma endregion Include_Platform</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_s_s_d_p_n_e_t.html">SSDPNET</a></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>{</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>    <span class="keyword">namespace </span>Geom</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>    {</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>        [Extension()]</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html">   23</a></span>        <span class="keyword">public ref class</span> <a class="code hl_class" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html">XRay3dExtension</a></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>        {</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>            [Extension()]</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>            <span class="keyword">static</span> ATEC::GeometryNET::XRay3d <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#ab635edc85cf50d84e448c0983faa9fee">FromOriginAndTarget</a>(</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>                ATEC::GeometryNET::XPoint2d point0,</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>                ATEC::GeometryNET::XPoint2d point1);</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>            [Extension()]</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>            <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#a8d97fdf7963ff0cafe2b9f7a6284b573">InitFromOriginAndVector</a>(ATEC::GeometryNET::XRay3d ray3d,</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>                ATEC::GeometryNET::XPoint3d origin,</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span>                ATEC::GeometryNET::XVector3d vector);</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>            [Extension()]</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>            <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#a0a3db6ff821d48c01c47e9ccaad501fe">InitFromPlanePlaneIntersection</a>(ATEC::GeometryNET::XRay3d ray3d,</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>                ATEC::GeometryNET::XPlane3d planeA,</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>                ATEC::GeometryNET::XPlane3d planeB);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>            [Extension()]</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>            <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#a3595d69d999ae5d3794aa2e76b347275">ClosestApproachUnboundedRayUnboundedRay</a>(</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>                out  <span class="keywordtype">double</span>  fractionA,</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span>                out  <span class="keywordtype">double</span>  fractionB,</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>                out ATEC::GeometryNET::XPoint3d   pointA,</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>                out ATEC::GeometryNET::XPoint3d   pointB,</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>                ATEC::GeometryNET::XRay3d rayA,</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>                ATEC::GeometryNET::XRay3d rayB);</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>        <span class="keyword">public</span>:</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>            [Extension()]</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>            <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#aafc762bb9cb814f353914ad8cf56d6ac">Intersect</a>(ATEC::GeometryNET::XRay3d ray3d,</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>                out  ATEC::GeometryNET::XPoint3d  intPoint,</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>                out  <span class="keywordtype">double</span>  intParam,</div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno">  101</span>                ATEC::GeometryNET::XPlane3d plane);</div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno">  102</span>        };</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>    }</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>}</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span> </div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension_html"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html">SSDPNET::Geom::XRay3dExtension</a></div><div class="ttdoc">射线扩展类</div><div class="ttdef"><b>Definition:</b> XRay3dExtension.h:24</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension_html_a0a3db6ff821d48c01c47e9ccaad501fe"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#a0a3db6ff821d48c01c47e9ccaad501fe">SSDPNET::Geom::XRay3dExtension::InitFromPlanePlaneIntersection</a></div><div class="ttdeci">static bool InitFromPlanePlaneIntersection(ATEC::GeometryNET::XRay3d ray3d, ATEC::GeometryNET::XPlane3d planeA, ATEC::GeometryNET::XPlane3d planeB)</div><div class="ttdoc">Desc： 由两个平面相交初始化数据</div><div class="ttdef"><b>Definition:</b> XRay3dExtension.cpp:41</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension_html_a3595d69d999ae5d3794aa2e76b347275"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#a3595d69d999ae5d3794aa2e76b347275">SSDPNET::Geom::XRay3dExtension::ClosestApproachUnboundedRayUnboundedRay</a></div><div class="ttdeci">static bool ClosestApproachUnboundedRayUnboundedRay(out double fractionA, out double fractionB, out ATEC::GeometryNET::XPoint3d pointA, out ATEC::GeometryNET::XPoint3d pointB, ATEC::GeometryNET::XRay3d rayA, ATEC::GeometryNET::XRay3d rayB)</div><div class="ttdoc">Desc： 计算（无界）射线 rayA 和（有界）射线 rayB 最接近的点，当两条射线平行返回false</div><div class="ttdef"><b>Definition:</b> XRay3dExtension.cpp:65</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension_html_a8d97fdf7963ff0cafe2b9f7a6284b573"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#a8d97fdf7963ff0cafe2b9f7a6284b573">SSDPNET::Geom::XRay3dExtension::InitFromOriginAndVector</a></div><div class="ttdeci">static void InitFromOriginAndVector(ATEC::GeometryNET::XRay3d ray3d, ATEC::GeometryNET::XPoint3d origin, ATEC::GeometryNET::XVector3d vector)</div><div class="ttdoc">Desc： 由起点和向量初始化数据</div><div class="ttdef"><b>Definition:</b> XRay3dExtension.cpp:18</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension_html_aafc762bb9cb814f353914ad8cf56d6ac"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#aafc762bb9cb814f353914ad8cf56d6ac">SSDPNET::Geom::XRay3dExtension::Intersect</a></div><div class="ttdeci">static const bool Intersect(ATEC::GeometryNET::XRay3d ray3d, out ATEC::GeometryNET::XPoint3d intPoint, out double intParam, ATEC::GeometryNET::XPlane3d plane)</div><div class="ttdoc">Desc： 计算(无界)射线与平面的交点，当射线与平面平行返回false</div><div class="ttdef"><b>Definition:</b> XRay3dExtension.cpp:100</div></div>
<div class="ttc" id="aclass_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension_html_ab635edc85cf50d84e448c0983faa9fee"><div class="ttname"><a href="class_s_s_d_p_n_e_t_1_1_geom_1_1_x_ray3d_extension.html#ab635edc85cf50d84e448c0983faa9fee">SSDPNET::Geom::XRay3dExtension::FromOriginAndTarget</a></div><div class="ttdeci">static ATEC::GeometryNET::XRay3d FromOriginAndTarget(ATEC::GeometryNET::XPoint2d point0, ATEC::GeometryNET::XPoint2d point1)</div><div class="ttdoc">Desc： 由2D的起点和另一个点创建一条射线</div><div class="ttdef"><b>Definition:</b> XRay3dExtension.cpp:4</div></div>
<div class="ttc" id="anamespace_s_s_d_p_n_e_t_html"><div class="ttname"><a href="namespace_s_s_d_p_n_e_t.html">SSDPNET</a></div><div class="ttdef"><b>Definition:</b> ATBtmkFuncsExtension.h:17</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
